<?php
class IndexAction extends Action {
	public function index() {
		$stu = D('CourseView');
		$list = $stu->select();
		$this->assign ( 'list', $list );
		$this->display ();
	}
	public function select() {
		$stu = D ( "CourseView" );
		$title = $_POST['title'];
		$map ['title'] = array (
						'like',"%".$title."%"
		);
		$list = $stu->where ( $map )->select ();
		if ($list) {
			$this->assign ( 'list', $list );
			$this->display ();
		} else {
			echo "没找到";
		}
		
	}
	
	//$id = I ( 'id' );
	//$map['sitemid']=$id;
	//$Vurl=$stu->where($map)->find();
	//dump($Vurl);
	//exit();
	//$this->assign('Vurl',$Vurl);	
	

}